<!DOCTYPE html>
<html>
1111111
<head>
	<meta charset="utf-8">
	<title>找出数组中出现的元素</title>
</head>

<body>
	<script>
		var arr = [10,12,10,45,32,10]
		var Arr=[]
			for(var i=0;i<arr.length;i++){
				for(var a=i+1;a<arr.length;a++){
					if(arr[i]===arr[a]&&Arr.indexOf(arr.indexOf(arr[a])===-1)){
						Arr.push(arr[i])
					}
				}
			}
		console.log(Arr)


	</script>
</body>

</html>